home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT NEWBOOKMARK.SCRIPT < prev    next >
Encoding:
Text File  |  1998-01-06  |  651 b   |  26 lines

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: Editor 
  8. @Method: newBookmark(startIndex [, endIndex]) creates a bookmark for the beginning line 
  9. index to the ending line index. Returns a Bookmark object. 
  10. @Syntax: editor.newBookmark(startIndex [, endIndex] )
  11. @Summary: newBookmark - creates a bookmark  
  12. */
  13.  
  14. function DoCommand()
  15. {
  16.   var editor = getActiveEditor();
  17.   if (editor)
  18.   {
  19.     var selection = editor.getSelection();
  20.     editor.replace("editor.newBookmark(startIndex [, endIndex] );", selection);
  21.     editor.setActive("Insert editor.newBookmark");
  22.   }
  23. }
  24.  
  25. !!/Script
  26.